import React, {useEffect} from 'react';
import {Form, Select} from "antd";
import {OutboundDeliveryOrder} from "type/OutboundDeliveryOrder";
import {OdoTypeSelectProps} from "../../../init";

const TransferOdoSelect = ({form}: OdoTypeSelectProps) => {
    useEffect(() => {
        form.setFieldValue("odoFlow","长春办事处") ;
    }, []);
    return (
        <Form.Item<OutboundDeliveryOrder> label={"调拨去向"} name={"odoFlow"} required>
            <Select loading={false} options={[
                { key: "t123", value: "长春办事处", label: "长春办事处" },
                { key: "t456", value: "个人", label: "个人" },
                { key: "t789", value: "汽贸城", label: "汽贸城" },
            ]}/>
        </Form.Item>
    );
};

export default TransferOdoSelect;